.class Lcom/xingbook/ting/lyric/b;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/ting/lyric/a;

.field private final synthetic b:Lcom/xingbook/c/f;


# direct methods
.method constructor <init>(Lcom/xingbook/ting/lyric/a;Lcom/xingbook/c/f;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    iput-object p2, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    iget-object v0, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v0}, Lcom/xingbook/ting/lyric/a;->a(Lcom/xingbook/ting/lyric/a;)Lcom/xingbook/ting/lyric/c;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    iget-object v1, v1, Lcom/xingbook/c/f;->c:Ljava/lang/Object;

    invoke-interface {v0, v1}, Lcom/xingbook/ting/lyric/c;->a(Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    invoke-virtual {v0}, Lcom/xingbook/c/f;->a()Ljava/io/InputStream;

    move-result-object v0

    if-eqz v0, :cond_2

    :try_start_0
    iget-object v1, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v1}, Lcom/xingbook/ting/lyric/a;->b(Lcom/xingbook/ting/lyric/a;)Lcn/a/b/b/a;

    move-result-object v1

    new-instance v2, Ljava/util/zip/GZIPInputStream;

    invoke-direct {v2, v0}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-virtual {v1, v2}, Lcn/a/b/b/a;->a(Ljava/util/zip/GZIPInputStream;)I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v0}, Lcom/xingbook/ting/lyric/a;->a(Lcom/xingbook/ting/lyric/a;)Lcom/xingbook/ting/lyric/c;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    iget-object v1, v1, Lcom/xingbook/c/f;->c:Ljava/lang/Object;

    invoke-interface {v0, v1}, Lcom/xingbook/ting/lyric/c;->c(Ljava/lang/Object;)V

    :goto_0
    return-void

    :cond_0
    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v0}, Lcom/xingbook/ting/lyric/a;->a(Lcom/xingbook/ting/lyric/a;)Lcom/xingbook/ting/lyric/c;

    move-result-object v1

    iget-object v0, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    iget-object v0, v0, Lcom/xingbook/c/f;->c:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    iget-object v2, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v2}, Lcom/xingbook/ting/lyric/a;->b(Lcom/xingbook/ting/lyric/a;)Lcn/a/b/b/a;

    move-result-object v2

    iget-object v2, v2, Lcn/a/b/b/a;->a:Ljava/util/ArrayList;

    invoke-interface {v1, v0, v2}, Lcom/xingbook/ting/lyric/c;->a(Ljava/lang/Object;Ljava/util/ArrayList;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    iget-object v1, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v1}, Lcom/xingbook/ting/lyric/a;->a(Lcom/xingbook/ting/lyric/a;)Lcom/xingbook/ting/lyric/c;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    iget-object v2, v2, Lcom/xingbook/c/f;->c:Ljava/lang/Object;

    const-string v3, "transform"

    invoke-interface {v1, v2, v3}, Lcom/xingbook/ting/lyric/c;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0

    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v0}, Lcom/xingbook/ting/lyric/a;->a(Lcom/xingbook/ting/lyric/a;)Lcom/xingbook/ting/lyric/c;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    iget-object v1, v1, Lcom/xingbook/c/f;->c:Ljava/lang/Object;

    const-string v2, "parse"

    invoke-interface {v0, v1, v2}, Lcom/xingbook/ting/lyric/c;->a(Ljava/lang/Object;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/ting/lyric/b;->a:Lcom/xingbook/ting/lyric/a;

    invoke-static {v0}, Lcom/xingbook/ting/lyric/a;->a(Lcom/xingbook/ting/lyric/a;)Lcom/xingbook/ting/lyric/c;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ting/lyric/b;->b:Lcom/xingbook/c/f;

    iget-object v1, v1, Lcom/xingbook/c/f;->c:Ljava/lang/Object;

    invoke-interface {v0, v1}, Lcom/xingbook/ting/lyric/c;->b(Ljava/lang/Object;)V

    goto :goto_0
.end method
